/*
 * @Author: zwc 6537397+uni-yunApp@user.noreply.gitee.com
 * @Date: 2023-03-16 10:31:56
 * @LastEditors: zwc 6537397+uni-yunApp@user.noreply.gitee.com
 * @LastEditTime: 2023-03-16 10:32:22
 * @FilePath: \project-template\src\utils\common.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export function toLogin() {
  const href = window.location.href
  const newHref = href.includes('https') ? href : href.replace('http', 'https')
  window.location.href = import.meta.env.VITE_SSO_LOGOUT_URL + encodeURIComponent(newHref)
}
